package com.guoxue.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guoxue.dao.IOrderDao;
import com.guoxue.domain.OrderVo;
import com.guoxue.service.IOrderService;
@Service
public class OrderServiceImpl implements IOrderService{
	
	@Autowired
	private IOrderDao orderDao;
	
	@Override
	public void saveOrder(OrderVo order) {
		orderDao.saveOrder(order);
	}

	@Override
	public List<OrderVo> getOrderList(Integer uid) {
		return orderDao.getOrderList(uid);
	}

	@Override
	public Long getOrderTotal(int uid) {
		return orderDao.getOrderTotal(uid);
	}

	@Override
	public OrderVo getOrder(int id,int uid) {
		return orderDao.getOrder(id,uid);
	}

}
